﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/17 18:25:30
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_Audit", new string[] { "A_ID" })]
    public class ScmAuditInfo : BaseEntity
    {
        public ScmAuditInfo()
        {

        }


        private string _aId;
        /// <summary>
        /// 整改审核主键
        /// </summary>
        [ColumnMap("A_ID", System.Data.DbType.String)]
        public string A_ID
        {
            get { return _aId; }
            set
            {
                if (object.Equals(this._aId, value) != true)
                {
                    this._aId = value;
                    this.RaisePropertyChanged("A_ID");
                }
            }
        }


        private string _aPrimayid;
        /// <summary>
        /// 外键
        /// </summary>
        [ColumnMap("A_PrimayID", System.Data.DbType.String)]
        public string A_PrimayID
        {
            get { return _aPrimayid; }
            set
            {
                if (object.Equals(this._aPrimayid, value) != true)
                {
                    this._aPrimayid = value;
                    this.RaisePropertyChanged("A_PrimayID");
                }
            }
        }


        private int _aDepid;
        /// <summary>
        /// 审批部门ID
        /// </summary>
        [ColumnMap("A_DepID", System.Data.DbType.Int32)]
        public int A_DepID
        {
            get { return _aDepid; }
            set
            {
                if (object.Equals(this._aDepid, value) != true)
                {
                    this._aDepid = value;
                    this.RaisePropertyChanged("A_DepID");
                }
            }
        }


        private string _aDepname;
        /// <summary>
        /// 审批部门名称
        /// </summary>
        [ColumnMap("A_DepName", System.Data.DbType.String)]
        public string A_DepName
        {
            get { return _aDepname; }
            set
            {
                if (object.Equals(this._aDepname, value) != true)
                {
                    this._aDepname = value;
                    this.RaisePropertyChanged("A_DepName");
                }
            }
        }


        private int _aManid;
        /// <summary>
        /// 审批人ID
        /// </summary>
        [ColumnMap("A_ManID", System.Data.DbType.Int32)]
        public int A_ManID
        {
            get { return _aManid; }
            set
            {
                if (object.Equals(this._aManid, value) != true)
                {
                    this._aManid = value;
                    this.RaisePropertyChanged("A_ManID");
                }
            }
        }


        private string _aManname;
        /// <summary>
        /// 审批人名称
        /// </summary>
        [ColumnMap("A_ManName", System.Data.DbType.String)]
        public string A_ManName
        {
            get { return _aManname; }
            set
            {
                if (object.Equals(this._aManname, value) != true)
                {
                    this._aManname = value;
                    this.RaisePropertyChanged("A_ManName");
                }
            }
        }


        private DateTime _aTime;
        /// <summary>
        /// 审批时间
        /// </summary>
        [ColumnMap("A_Time", System.Data.DbType.DateTime)]
        public DateTime A_Time
        {
            get { return _aTime; }
            set
            {
                if (object.Equals(this._aTime, value) != true)
                {
                    this._aTime = value;
                    this.RaisePropertyChanged("A_Time");
                }
            }
        }


        private bool _aIsapproved;
        /// <summary>
        /// 审批是否通过（0=不通过，1=通过）
        /// </summary>
        [ColumnMap("A_IsApproved", System.Data.DbType.Boolean)]
        public bool A_IsApproved
        {
            get { return _aIsapproved; }
            set
            {
                if (object.Equals(this._aIsapproved, value) != true)
                {
                    this._aIsapproved = value;
                    this.RaisePropertyChanged("A_IsApproved");
                }
            }
        }


        private int _aState;
        /// <summary>
        /// 审批状态
        /// </summary>
        [ColumnMap("A_State", System.Data.DbType.Int32)]
        public int A_State
        {
            get { return _aState; }
            set
            {
                if (object.Equals(this._aState, value) != true)
                {
                    this._aState = value;
                    this.RaisePropertyChanged("A_State");
                }
            }
        }


        private string _aOpinion;
        /// <summary>
        /// 审批意见
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(100, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("A_Opinion", System.Data.DbType.String)]
        public string A_Opinion
        {
            get { return _aOpinion; }
            set
            {
                if (object.Equals(this._aOpinion, value) != true)
                {
                    this._aOpinion = value;
                    this.RaisePropertyChanged("A_Opinion");
                }
            }
        }

        private string _aRemark;
        /// <summary>
        /// 审批意见
        /// </summary>
        [ColumnMap("A_Remark", System.Data.DbType.String)]
        public string A_Remark
        {
            get { return _aRemark; }
            set
            {
                if (object.Equals(this._aRemark, value) != true)
                {
                    this._aRemark = value;
                    this.RaisePropertyChanged("A_Remark");
                }
            }
        }
    }
}



